package com.aliwo.proxy;



/**
 * @author:xuyayuan
 * @date:2021/8/3 11:13
 * @description:TODO
 */
public class TestJdkProxy {
    public static void main(String[] args) {
        JdkExampleProxy jdkExampleProxy = new JdkExampleProxy();
        // 绑定关系，因为挂在接口HelloWorld下，所以声明代理对象 HelloWorld proxy
        HelloWorld proxy = (HelloWorld) jdkExampleProxy.bind(new HelloWorldImpl());
        proxy.sayHello();
    }
}
